package com.linskating.wheat.common;

public class ResultUtils {
    public static <T> BaseResponse<T> success(T data) {
        return new BaseResponse<>(200, data, "请求成功");
    }

    public static <T> BaseResponse<T> error(ErrorCode e, String description) {
        return new BaseResponse<>(e, description);
    }
}
